package com.blog.backend.mapper;

import com.blog.backend.req.FoodReq;
import com.blog.backend.req.ListFoodReq;
import com.blog.backend.resp.FoodResp;
import com.blog.backend.resp.IndexArticleResp;

import java.util.List;

public interface FoodMapper {
    void insertFood(FoodReq foodReq);

    List<FoodResp> selectFoodList(ListFoodReq req);

    FoodResp selectFoodDetail(String foodId);

    void updateFoodDetail(FoodReq foodReq);

    void updateFoodStatus(String foodId);

    Integer statisticsTotal();

    List<IndexArticleResp> selectHotFood(Integer num);

    Integer selectDraftNums();

    List<FoodResp> selectHotFoodList();

    List<FoodResp> selectDoorFoodList(ListFoodReq request);

    List<IndexArticleResp> getNewArticle(int num);

    Integer updateBrowseNumById(String articleId);

    void addLikeNum(String articleId);
}
